<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateVisitorsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('visitors', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable();
            $table->string('gender')->nullable();
            $table->string('id_card')->nullable();
            $table->string('departure_city')->nullable();
            $table->string('departure_date')->nullable();
            $table->string('arrival_date')->nullable();
            $table->string('transport')->nullable();
            $table->string('arrival_city')->nullable();
            $table->string('flight_number')->nullable();
            $table->string('is_accommodation')->nullable();
            $table->string('room_type')->nullable();
            $table->string('inviter')->nullable();
            $table->string('region')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('visitors');
    }
}
